<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="linkList.title"/></title>
    <meta name="heading" content="<fmt:message key='linkList.heading'/>"/>
    <meta name="menu" content="LinkMenu"/>
</head>

<c:set var="buttons">
    <a class="button" href="/editLink.html"><span><fmt:bundle basename="ApplicationResources"><fmt:message key="form.add"/></fmt:bundle></span></a>
    
</c:set>

<c:set var="navigator"><c:url value="/links.html"/></c:set>

<div id="left">

	<fmt:bundle basename="ApplicationResources"><fmt:message key="link.list.page.title"/></fmt:bundle>
	<fmt:bundle basename="ApplicationResources"><fmt:message key="link.list.page.body"/></fmt:bundle>

	<c:if test="${not empty links}">
		<div align="center">
			<nav:alphanavbar requestURI="${navigator}" name="links" keycolumn="text"/>
		</div>
	</c:if>
	
	<display:table name="requestScope.alphabeticalsublist" cellspacing="0" cellpadding="0" class="table" requestURI="" id="linkList" export="true" pagesize="6">
	    <display:column property="url" sortable="true" titleKey="link.url"/>
	    <display:column property="text" href="editLink.html" media="html" paramId="id" paramProperty="id" sortable="true" titleKey="link.text"/>
	    <display:column property="tooltip" sortable="true" titleKey="link.tooltip"/>
	    <display:column property="linkCategory.name" sortable="true" titleKey="link.linkCategory.name"/>
	    <display:column property="linkCategory.linkType.name" sortable="true" titleKey="link.linkCategory.linkType.name"/>
	    <display:column property="open" sortable="true" titleKey="link.open"/>
	
	    <display:setProperty name="paging.banner.item_name"><fmt:message key="linkList.link"/></display:setProperty>
	    <display:setProperty name="paging.banner.items_name"><fmt:message key="linkList.links"/></display:setProperty>
	
	    <display:setProperty name="export.excel.filename"><fmt:message key="linkList.title"/>.xls</display:setProperty>
	    <display:setProperty name="export.csv.filename"><fmt:message key="linkList.title"/>.csv</display:setProperty>
	    <display:setProperty name="export.pdf.filename"><fmt:message key="linkList.title"/>.pdf</display:setProperty>
	</display:table>
</div>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("linkList");
</script>
